<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\web\View;


$this->title = '登录';
$this->registerCssFile("/css/user.css", ['options' => View::POS_END]);
?>


<div class="mian_box">
    <div id="login_box">
        <div class="login_left">
            <div id="user_left_id"></div>
        </div>
        <div class="login_right">
            <h4 class="pull-left">
                <span>没有账号？ <?= Html::a('免费注册', ['/site/signup'], ['target'=>'_blank', 'id'=>'act_login_register']) ?></span>
                <?= Html::encode($this->title) ?>
            </h4>
            <ul>
                <?php $form = ActiveForm::begin(); ?>
                <li>
                    <span class="input-tip">用户名</span>
                    <?= $form->field($model, 'username')->textInput(['autofocus' => true, 'placeholder' => "用户名/手机/邮箱", 'class' => 'login_k', 'id' => 'username'])->label(""); ?>
                </li>
                <li>
                    <span class="input-tip">密码</span>
                    <?= $form->field($model, 'password')->passwordInput(['placeholder' => "密码", 'class' => 'login_k', 'id' => 'password'])->label(""); ?>
                </li>
                <li class="jizhumima">
                    <?= Html::a('忘记密码？', ['class' => 'wjmm', 'site/request-password-reset']) ?>.
                    <label><?= $form->field($model, 'rememberMe')->checkbox()->label('记住密码'); ?></label>
                </li>
                <li>
                    <?= Html::submitButton('登录', ['id' => 'act_login', 'class' => 'login-btn', 'name' => 'login-button']) ?>
                </li>
                <?php ActiveForm::end(); ?>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
</div>